package com.lx.information.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lx.information.mapper.InformationCaseAddressMapper;
import com.lx.information.domain.InformationCaseAddress;
import com.lx.information.service.IInformationCaseAddressService;

/**
 * 案件地址Service业务层处理
 * 
 * @author lx
 * @date 2023-04-04
 */
@Service
public class InformationCaseAddressServiceImpl implements IInformationCaseAddressService 
{
    @Autowired
    private InformationCaseAddressMapper informationCaseAddressMapper;

    /**
     * 查询案件地址
     * 
     * @param id 案件地址主键
     * @return 案件地址
     */
    @Override
    public InformationCaseAddress selectInformationCaseAddressById(Long id)
    {
        return informationCaseAddressMapper.selectInformationCaseAddressById(id);
    }

    /**
     * 查询案件地址列表
     * 
     * @param informationCaseAddress 案件地址
     * @return 案件地址
     */
    @Override
    public List<InformationCaseAddress> selectInformationCaseAddressList(InformationCaseAddress informationCaseAddress)
    {
        return informationCaseAddressMapper.selectInformationCaseAddressList(informationCaseAddress);
    }

    /**
     * 新增案件地址
     * 
     * @param informationCaseAddress 案件地址
     * @return 结果
     */
    @Override
    public int insertInformationCaseAddress(InformationCaseAddress informationCaseAddress)
    {
        informationCaseAddress.setCreateTime(DateUtils.getNowDate());
        return informationCaseAddressMapper.insertInformationCaseAddress(informationCaseAddress);
    }

    /**
     * 修改案件地址
     * 
     * @param informationCaseAddress 案件地址
     * @return 结果
     */
    @Override
    public int updateInformationCaseAddress(InformationCaseAddress informationCaseAddress)
    {
        informationCaseAddress.setUpdateTime(DateUtils.getNowDate());
        return informationCaseAddressMapper.updateInformationCaseAddress(informationCaseAddress);
    }

    /**
     * 批量删除案件地址
     * 
     * @param ids 需要删除的案件地址主键
     * @return 结果
     */
    @Override
    public int deleteInformationCaseAddressByIds(Long[] ids)
    {
        return informationCaseAddressMapper.deleteInformationCaseAddressByIds(ids);
    }

    /**
     * 删除案件地址信息
     * 
     * @param id 案件地址主键
     * @return 结果
     */
    @Override
    public int deleteInformationCaseAddressById(Long id)
    {
        return informationCaseAddressMapper.deleteInformationCaseAddressById(id);
    }
}
